class Solution:
    def repeatedSubstringPattern(self, s):
        """
        :type s: str
        :rtype: bool
        """
        import re

        return bool(re.match(r'^([a-z]+)(\1){1,}$', s))

s = Solution()
print(s.repeatedSubstringPattern("abcabcabcabc"))
